import request from '@/utils/request'

//获取连接
export function getWebSocketServerUrl() {
  return request({
    url: 'netty/getWebSocketServerUrl',
    method: 'get',
  })
}
//获取好友列表
export function getFriendList(userName) {
  return request({
    url: 'netty/getFriendList/'+userName,
    method: 'get',
  })
}
//上传文件
export function upload(data) {
  return request({
    url: 'netty/upload?file='+data,
    method: 'post',
  })
}
